Socket
Socket
Sign inDemoInstall

@tkey/storage-layer-torus

Package Overview
Dependencies
Maintainers
4
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tkey/storage-layer-torus

TKey Torus Storage Layer Module


Version published
Maintainers
4
Created
Source

tKey Torus Storage Layer

npm version minzip

A storage layer is needed to store and recall the metadata information of the shares generated so as to be able to recover the private key from the tKeys generated. This SDK gives you the ability to get and set the Metadata for the various shares generated.

Installation

npm install --save @tkey/storage-layer-torus

Instantiation

Import the TorusStorageLayer class from @tkey/storage-layer-torus
import TorusStorageLayer from "@tkey/storage-layer-torus";
Assign the TorusStorageLayer class to a variable
const storageLayer = new TorusStorageLayer(TorusStorageLayerArgs);

Parameters

declare type TorusStorageLayerArgs = {
  enableLogging?: boolean;
  hostUrl?: string; // use `https://metadata.tor.us` for connecting to the Torus Metadata Server
  serverTimeOffset?: number;
};

Example

import TorusStorageLayer from "@tkey/storage-layer-torus";

const storageLayer = new TorusStorageLayer({ hostUrl: "https://metadata.tor.us" });

FAQs

Package last updated on 29 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc